#include "StdAfx.h"
#include "FadedLineUI.h"
#include "Size.h"
#include "BlueRenderEngineUI.h"


CFadedLineUI::CFadedLineUI(void)
{
}

CFadedLineUI::~CFadedLineUI(void)
{
}

LPCTSTR CFadedLineUI::GetClass() const
{
	return _T("FadedLineUI");
}

SIZE CFadedLineUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 10);
}

void CFadedLineUI::DoPaint(HDC hDC, const RECT& /*rcPaint*/)
{
	COLORREF clrLine = m_pManager->GetThemeColor(UICOLOR_NAVIGATOR_BORDER_NORMAL);
	COLORREF clrDialog = m_pManager->GetThemeColor(UICOLOR_DIALOG_BACKGROUND);
	RECT rc1 = { m_rcItem.left, m_rcItem.top + 3, m_rcItem.right - 120, m_rcItem.top + 3 };
	CBlueRenderEngineUI::DoPaintLine(hDC, m_pManager, rc1, UICOLOR_NAVIGATOR_BORDER_NORMAL);
	RECT rc2 = { m_rcItem.right - 120, m_rcItem.top + 3, m_rcItem.right - 40, m_rcItem.top + 4 };
	CBlueRenderEngineUI::DoPaintGradient(hDC, m_pManager, rc2, clrLine, clrDialog, false, 16);
}

